package com.attendance.www.hr.service;

import java.util.List;

import com.attendance.www.hr.beans.DictionaryBean;
import com.attendance.www.hr.beans.DictionaryPageBean;
import com.attendance.www.hr.entitys.Dictionary;

public interface IDictionaryService {
	
	/**
	 * 获取所有字典表数据
	 * @return
	 */
	public DictionaryPageBean getDictionaryList(Integer startNum, Integer pageCount);
	/**
	 * 根据dicCls字典类型查询字典表数据
	 * @param dicCls
	 * @return
	 */
	public List<DictionaryBean> getDictionaryListByDicCls(String dicCls,String dicCd,Integer employeeId);
	/**
	 * 根据dicCls,字典类型查询字典表数据
	 * @param dicCls
	 * @return
	 */
	public Dictionary getDictionaryListByDicClsORDicCd(String dicCls,String dicCd);
	/**
	 * 添加一条字典数据
	 * @param dictionary
	 * @return
	 */
	public boolean saveDictionary(Dictionary dictionary);
	/**
	 * 修改字典数据，根据dicCls和dicCd来确定需要修改的属性
	 * @param dictionary
	 * @return
	 */
	public boolean updateDictionary(Dictionary dictionary);
	/**
	 * 删除字典数据，根据dicCls和dicCd来确定需要删除的属性
	 * @param dictionary
	 * @return
	 */
	public boolean deleteDictionary(Dictionary dictionary);
	
	List<DictionaryBean> getDictionaryByDicCls(String dicCls);
}
